package shark.picture.data.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

/**
 * 电费电量复核-异常数据记录表
 * @TableName elec_exception_records
 */
@TableName(value ="elec_exception_records_wjx")
@Data
public class ElecExceptionRecords {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 审核规则ID
     */
    private Long policyId;

    /**
     * 审核规则名称
     */
    private String policyName;

    /**
     * 户号
     */
    private String consNo;

    /**
     * 户名
     */
    private String consName;

    /**
     * 用电地址
     */
    private String elecAddr;

    /**
     * 供电单位
     */
    private String orgNo;

    /**
     * 供电单位名称
     */
    private String orgName;

    /**
     * 用户类型 01高压 02低压非居民 03低压居民
     */
    private String consType;

    /**
     * 账期
     */
    private String billDate;

    /**
     * 电压等级 1:100KV以下  2:100KV以上
     */
    private Long voltageLevel;

    /**
     * 计划编号
     */
    private String planNo;

    /**
     * 核算包编号
     */
    private String calculateNo;

    /**
     * 抄表包编号
     */
    private String meterNo;

    /**
     * 异常类型 1:试算异常 2:出账异常
     */
    private Long exceptionType;

    /**
     * 记录生成时间
     */
    private Date createTime;

    /**
     *
     */
    private Date createDate;

    /**
     * 核算时间
     */
    private String calculateTime;

    /**
     * 处理结果 0未处理 1已处理
     */
    private Long handleResult;

    /**
     * 处理时间
     */
    private Date handleTime;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ElecExceptionRecords other = (ElecExceptionRecords) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getPolicyId() == null ? other.getPolicyId() == null : this.getPolicyId().equals(other.getPolicyId()))
            && (this.getPolicyName() == null ? other.getPolicyName() == null : this.getPolicyName().equals(other.getPolicyName()))
            && (this.getConsNo() == null ? other.getConsNo() == null : this.getConsNo().equals(other.getConsNo()))
            && (this.getConsName() == null ? other.getConsName() == null : this.getConsName().equals(other.getConsName()))
            && (this.getElecAddr() == null ? other.getElecAddr() == null : this.getElecAddr().equals(other.getElecAddr()))
            && (this.getOrgNo() == null ? other.getOrgNo() == null : this.getOrgNo().equals(other.getOrgNo()))
            && (this.getOrgName() == null ? other.getOrgName() == null : this.getOrgName().equals(other.getOrgName()))
            && (this.getConsType() == null ? other.getConsType() == null : this.getConsType().equals(other.getConsType()))
            && (this.getBillDate() == null ? other.getBillDate() == null : this.getBillDate().equals(other.getBillDate()))
            && (this.getVoltageLevel() == null ? other.getVoltageLevel() == null : this.getVoltageLevel().equals(other.getVoltageLevel()))
            && (this.getPlanNo() == null ? other.getPlanNo() == null : this.getPlanNo().equals(other.getPlanNo()))
            && (this.getCalculateNo() == null ? other.getCalculateNo() == null : this.getCalculateNo().equals(other.getCalculateNo()))
            && (this.getMeterNo() == null ? other.getMeterNo() == null : this.getMeterNo().equals(other.getMeterNo()))
            && (this.getExceptionType() == null ? other.getExceptionType() == null : this.getExceptionType().equals(other.getExceptionType()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getCreateDate() == null ? other.getCreateDate() == null : this.getCreateDate().equals(other.getCreateDate()))
            && (this.getCalculateTime() == null ? other.getCalculateTime() == null : this.getCalculateTime().equals(other.getCalculateTime()))
            && (this.getHandleResult() == null ? other.getHandleResult() == null : this.getHandleResult().equals(other.getHandleResult()))
            && (this.getHandleTime() == null ? other.getHandleTime() == null : this.getHandleTime().equals(other.getHandleTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getPolicyId() == null) ? 0 : getPolicyId().hashCode());
        result = prime * result + ((getPolicyName() == null) ? 0 : getPolicyName().hashCode());
        result = prime * result + ((getConsNo() == null) ? 0 : getConsNo().hashCode());
        result = prime * result + ((getConsName() == null) ? 0 : getConsName().hashCode());
        result = prime * result + ((getElecAddr() == null) ? 0 : getElecAddr().hashCode());
        result = prime * result + ((getOrgNo() == null) ? 0 : getOrgNo().hashCode());
        result = prime * result + ((getOrgName() == null) ? 0 : getOrgName().hashCode());
        result = prime * result + ((getConsType() == null) ? 0 : getConsType().hashCode());
        result = prime * result + ((getBillDate() == null) ? 0 : getBillDate().hashCode());
        result = prime * result + ((getVoltageLevel() == null) ? 0 : getVoltageLevel().hashCode());
        result = prime * result + ((getPlanNo() == null) ? 0 : getPlanNo().hashCode());
        result = prime * result + ((getCalculateNo() == null) ? 0 : getCalculateNo().hashCode());
        result = prime * result + ((getMeterNo() == null) ? 0 : getMeterNo().hashCode());
        result = prime * result + ((getExceptionType() == null) ? 0 : getExceptionType().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode());
        result = prime * result + ((getCalculateTime() == null) ? 0 : getCalculateTime().hashCode());
        result = prime * result + ((getHandleResult() == null) ? 0 : getHandleResult().hashCode());
        result = prime * result + ((getHandleTime() == null) ? 0 : getHandleTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", policyId=").append(policyId);
        sb.append(", policyName=").append(policyName);
        sb.append(", consNo=").append(consNo);
        sb.append(", consName=").append(consName);
        sb.append(", elecAddr=").append(elecAddr);
        sb.append(", orgNo=").append(orgNo);
        sb.append(", orgName=").append(orgName);
        sb.append(", consType=").append(consType);
        sb.append(", billDate=").append(billDate);
        sb.append(", voltageLevel=").append(voltageLevel);
        sb.append(", planNo=").append(planNo);
        sb.append(", calculateNo=").append(calculateNo);
        sb.append(", meterNo=").append(meterNo);
        sb.append(", exceptionType=").append(exceptionType);
        sb.append(", createTime=").append(createTime);
        sb.append(", createDate=").append(createDate);
        sb.append(", calculateTime=").append(calculateTime);
        sb.append(", handleResult=").append(handleResult);
        sb.append(", handleTime=").append(handleTime);
        sb.append("]");
        return sb.toString();
    }
}
